<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>cancellation_slot_binder::result_type</title>
    <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
    <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
    <link rel="home" href="../../../index.html" title="Asio">
    <link rel="up" href="../cancellation_slot_binder.html" title="cancellation_slot_binder">
    <link rel="prev" href="operator_lp__rp_/overload2.html"
          title="cancellation_slot_binder::operator() (2 of 2 overloads)">
    <link rel="next" href="second_argument_type.html" title="cancellation_slot_binder::second_argument_type">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%">
    <tr>
        <td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="operator_lp__rp_/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u"
                                                                                                           href="../cancellation_slot_binder.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="second_argument_type.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
    <div class="titlepage">
        <div>
            <div><h4 class="title">
                <a name="asio.reference.cancellation_slot_binder.result_type"></a><a class="link"
                                                                                     href="result_type.html"
                                                                                     title="cancellation_slot_binder::result_type">cancellation_slot_binder::result_type</a>
            </h4></div>
        </div>
    </div>
    <p>
        <a class="indexterm" name="asio.indexterm.cancellation_slot_binder.result_type"></a>
        The
        return type if a function.
    </p>
    <pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">see_below</span> <span
            class="identifier">result_type</span><span class="special">;</span>
</pre>
    <p>
        The type of <code class="computeroutput"><span class="identifier">result_type</span></code>
        is based on the type <code class="computeroutput"><span class="identifier">T</span></code>
        of the wrapper's target object:
    </p>
    <div class="itemizedlist">
        <ul class="itemizedlist" type="disc">
            <li class="listitem">
                if <code class="computeroutput"><span class="identifier">T</span></code> is a pointer to
                function type, <code class="computeroutput"><span class="identifier">result_type</span></code>
                is a synonym for the return type of <code class="computeroutput"><span
                    class="identifier">T</span></code>;
            </li>
            <li class="listitem">
                if <code class="computeroutput"><span class="identifier">T</span></code> is a class type
                with a member type <code class="computeroutput"><span class="identifier">result_type</span></code>,
                then <code class="computeroutput"><span class="identifier">result_type</span></code> is
                a synonym for <code class="computeroutput"><span class="identifier">T</span><span
                    class="special">::</span><span class="identifier">result_type</span></code>;
            </li>
            <li class="listitem">
                otherwise <code class="computeroutput"><span class="identifier">result_type</span></code>
                is not defined.
            </li>
        </ul>
    </div>
    <h6>
        <a name="asio.reference.cancellation_slot_binder.result_type.h0"></a>
        <span><a name="asio.reference.cancellation_slot_binder.result_type.requirements"></a></span><a class="link"
                                                                                                       href="result_type.html#asio.reference.cancellation_slot_binder.result_type.requirements">Requirements</a>
    </h6>
    <p>
        <span class="emphasis"><em>Header: </em></span><code class="literal">asio/bind_cancellation_slot.hpp</code>
    </p>
    <p>
        <span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
    </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%">
    <tr>
        <td align="left"></td>
        <td align="right">
            <div class="copyright-footer">Copyright © 2003-2022 Christopher M. Kohlhoff<p>
                Distributed under the Boost Software License, Version 1.0. (See accompanying
                file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
            </p>
            </div>
        </td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="operator_lp__rp_/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u"
                                                                                                           href="../cancellation_slot_binder.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="second_argument_type.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
